from rest_framework import serializers
from .models import *


class IndexSerializer(serializers.ModelSerializer):
    resp = serializers.JSONField()
    class Meta:
        model = Indexes
        fields = ['id','index_name','groups','resp']

class IndexesSerializer(serializers.ModelSerializer):
    class Meta:
        model = Indexes
        fields = ['id','index_name','groups']





